-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement API endpoint that returns TSV report about submissions that are pending review #1443
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @cristina-stonepedraza, I think this looks great overall! the code looks clean to me and I had no issues following it.
I left some feedback about path, function, and variable naming, as well as one about the endpoint description. In case you have any questions about these, you can message me here/Slack/etc.
There is one more thing I want to see in this PR:
- An automated test
I'll send you information about that on Slack. I posted information about that below.
Hi @cristina-stonepedraza, here's an example of an automated test that targets an endpoint like this one: nmdc-server/tests/test_submission.py Lines 41 to 125 in 36dbba5
There are actually two tests there because the endpoint in question is only accessible to admins. One of the tests focuses on that aspect (i.e. security). By the way, I do wonder whether we will restrict access to this reporting endpoint also. You/we can discuss that with @mslarae13. |
Co-authored-by: eecavanna <[email protected]>
Co-authored-by: eecavanna <[email protected]>
…h check in github actions
@eecavanna I assume the submission status end point that I use for quarterly metrics is limited, yes? I think this should be the same. |
Add a script to api.py and a query to crud.py to pull information from the submission portal database, and then generate a report of NMDC submissions that have been submitted as a TSV.
This PR references issue 2047 in nmdc-schema: microbiomedata/nmdc-schema#2047